﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Selection4
{
    public class ShiConfiguration : ConfigurationSection
    {


        private static string sConfigurationSectionConst = "shiConfiguration";

        /// <summary>
        /// Returns an shiConfiguration instance
        /// </summary>
        public static ShiConfiguration GetConfig()
        {

            return (ShiConfiguration)System.Configuration.ConfigurationManager.
               GetSection(ShiConfiguration.sConfigurationSectionConst + "/shiSettings") ??
               new ShiConfiguration();

        }

        [System.Configuration.ConfigurationProperty("shiSettings")]
        public ShiSettingCollection shiSettings
        {
            get
            {
                return (ShiSettingCollection)this["shiSettings"] ??
                   new ShiSettingCollection();
            }
        }

    }
}
